(function () {
    'use strict';

    angular.module('BlurAdmin.pages.member')
        .service('MemberModel', MemberModel);

    function MemberModel($http,API,$resource) {
        this.actions = {}

        this.actions.getMemberPage = {
            method: 'POST',
            url: API + '/member/getMemberPage'
        }

        this.actions.getMemberInfo = {
            method: 'POST',
            url: API + '/member/getMemberInfo/:id'
        }

        this.actions.pcSaveMemberInfo = {
            method: 'POST',
            url: API + '/member/pcSaveMemberInfo'
        }
        return $resource.call(this, this.url, this.params, this.actions)
    }

})();
